<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="js/jquery.min.js"></script>
    <style>
        table{
            width: 200px;
            border: 1px solid gray;
            border-collapse: 1px;
        }
        td{
           width: 200px;
           border-collapse: 1px;
        }
        tr{
            transition: all 5s;
        }
        .sd{
            width: 150px;
            height: 150px;
            background-color: greenyellow;
        }
    </style>
    <title>Document</title>
</head>
<body>
    <table>
        <tr>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td>2</td>
            <td>2</td>
            <td>2</td>
        </tr>
        <tr>
            <td>3</td>
            <td>3</td>
            <td>3</td>
        </tr>
    </table>
    <h1>append(),prepend,after,before</h1>
    <h1>remove,empty()</h1>
    <pre>
        主要区别是,标签里面和外面
        remove 标签被删除,包括里面的
        empty  只删除里面的
    </pre>
    <!-- <div>
        <h3>ceshi</h3>
        <p>我是还</p>
    </div> -->
    <h3>测试</h3>
    <div>
        <h3>你好</h3>
        <h4>sp</4>
    </div>
    <div class="sd">
    </div>
</body>
<script>

    $(function(){
        var x=0;
        $("tr").click(function(){
            $(this).css({"left":"400px","position":"absolute"});
            $(this).animate({left:'1000px',opacity:'0.5',});
            //倒计时2秒后删除
            var that=this;
            setTimeout(function(){
                $(that).remove();
            },2000)
            // $(this).everyTime('2s',function(){
            //     alert(this);
            //     $(this).remove();
            // });
        })
        $(".sd").click(function(){
            $(this).css({
                "transform": "rotate(30deg)",

            });
        })
    //    $("h3").append("<h3>你好啊</h3>");
    //    $("h3").after("<h3>你好啊</h3>");
    //    $("h3").prepend("<h3>你好啊</h3>");
    //    $("h3").before("<h3>你好啊</h3>");$("h3").prepend("<h3>你好啊</h3>");
    // $("div").remove();
    // $("div").empty();
    // $("div").remove("h4");
    })
</script>
</html>